import numpy as np

# Creating a 1D array
array1 = np.array([1, 2, 3, 4, 5])
print("1D array:type", type(array1))

# array demiension
array2 = np.array([[1, 2, 3], [4, 5, 6]])
print(f" array1:dimension={array1.ndim} array2:dimension={array2.ndim}")

# array element datatype

print(f" array1:datatype={array1.dtype} ")

array3 = np.array([1, 2, 3, 4, 5], dtype=float)
print(f" array3:datatype={array3.dtype} ")

#array shape
array1d= np.array([1, 2, 3, 4, 5])
array2d = np.array([[1,2,3],[4,5,6]])
array3d = np.array([
    [
        [1,2,3],[4,5,6]
    ]
    ,[
        [7,8,9],[10,11,12]
    ]
])


print(f"array1d:shape={array1d.shape} array2d:shape={array2d.shape} array3d:shape={array3d.shape}")